package top.healthylife.gateway.platform.youshu.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.youshu.api.utils.YoushuHttpUtil;
import top.healthylife.gateway.platform.youshu.dto.apia001.req.YoushuReqEnterpriseCreditInfoDto;
import top.healthylife.gateway.platform.youshu.dto.apia001.res.YoushuResEnterpriseCreditInfoDto;

/**
 * @author : GaoZeXi
 * @date 2021/8/8 14:16
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20, apiName = "企业综合信用信息", info = "接口Id:A001")
public class YoushuEnterpriseCreditInfoApi implements ParentFace<YoushuReqEnterpriseCreditInfoDto, YoushuResEnterpriseCreditInfoDto> {

    static final String API_CODE = "A001";

    @Override
    public YoushuResEnterpriseCreditInfoDto execute(YoushuReqEnterpriseCreditInfoDto t) throws Exception {
        return YoushuHttpUtil.httpRequest(t,API_CODE,YoushuResEnterpriseCreditInfoDto.class);
    }
}
